<template>
  <view>
    <block v-for="(item,index) in jdata" :key="index">
		<!-- 搜索框 -->
      <jshopsearch :jdata="item" v-if="item.widget_code=='search' "></jshopsearch>
	  <!-- 这里是轮播图 -->
      <jshopimgSlide :jdata="item" v-if="item.widget_code=='imgSlide' "></jshopimgSlide>
	  <!-- 分期值商品   抢购区商品 -->
	  <installmentgoods :jdata="item" v-if="item.widget_code=='insmentgoods' "></installmentgoods>
     <!-- 商品组名称 -->
	  <jshopgoods :jdata="item" v-if="item.widget_code=='goods' "></jshopgoods>
    </block>
  </view>
</template>
<script>

import jshopimgSlide from '@/components/home/jshop-imgSlide.vue'
import jshopsearch from '@/components/home/jshop-search.vue'
import jshopgoods from '@/components/home/jshop-goods.vue'
import installmentgoods from '@/components/home/installment-goods.vue'
export default {
  name: 'home',
  components: {
    jshopimgSlide,
    jshopsearch,
    jshopgoods,
	installmentgoods
  },
  props: {
    jdata: {
      default: function() {
      }
    }
  },
  
}
</script>
